package com.ztesoft.huangfu.learning.springboot.springbootcommon.exception;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/7/9
 * Time: 13:50
 * Version: 1.0
 * Description:自定义异常类
 **/
public class CommonException extends RuntimeException {
    private Integer code;
    private String message;

    public CommonException(Integer code, String message) {
        super();
        this.code = code;
        this.message = message;

    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
